CPSW\Gateway\Abstract_Payment_Gateway D

Total Complexity 175
Dependencies 6
Dependents 0
Total lines 1,152
Lines of code 632
Logical lines of code 344
Comment lines 358
Methods 38
Properties 2

Methods 38

Method Rating Maintainability Complexity Lines of code
process_payment_with_saved_payment_method()
B
35 15 88
process_response()
A
43 15 45
create_stripe_customer()
A
48 13 28
process_refund()
A
46 10 34
update_balance()
A
49 9 28
is_available()
A
56 9 18
get_stripe_order_data()
A
47 7 38
get_customer_id()
A
55 8 21
get_metadata()
S
51 7 27
get_payment_intent()
S
46 6 40
get_token_from_request()
S
58 7 15
get_stripe_default_currency()
S
54 6 21
create_refund_request()
S
49 4 29
create_setup_intent()
S
58 5 13
process_order()
S
54 4 18
is_retryable_error()
S
66 5 9
get_billing_country()
S
59 4 14
update_stripe_balance()
S
61 4 11
get_clients_details()
S
63 4 10
get_original_amount()
S
63 3 10
save_payment_method_to_order()
S
64 3 10
is_using_saved_payment_method()
S
72 3 4
get_formatted_amount()
S
63 3 10
payment_icons()
S
62 2 11
should_save_card()
S
70 2 5
get_currency()
S
66 2 8
format_amount()
S
68 2 7
update_stripe_order_data()
S
72 2 5
get_transaction_url()
S
67 2 8
prepare_payment_method()
S
61 1 13
get_stripe_net()
S
79 1 3
get_stripe_fee()
S
79 1 3
get_stripe_currency()
S
79 1 3
clean_statement_descriptor()
S
64 1 8
create_payment_for_saved_payment_method()
S
75 1 4
add_gateway_class()
S
76 1 4
get_order_description()
S
76 1 3
__construct()
S
69 1 6